class outclass{   //外部类

    public int a1 = 1;
    private int a2 = 2;
    public static int a3 = 3;

    public  class innerclass{   //实例内部类

        public int a1 = 8;
        public int a4 = 4;
        private int a5 = 5;
        public static int a6 = 6;


        outclass y = new outclass();
        public void test(){
            System.out.println("内部类方法");
           System.out.println(y.a1);
           System.out.println(a2);
           System.out.println(a3);
           System.out.println(a4);
           System.out.println(a5);
           System.out.println(a6);
        }
    }

}

public class java0719 {
    public static void main(String[] args) {
        outclass y = new outclass();
       outclass.innerclass x = y.new innerclass();
       x.test();
    }
}
